package scsc.web.process.data;

import scsc.pub.data.ArchivesNotion;
import java.io.Serializable;
import scsc.pub.tools.StringUtil;

public class ArchivesNotionData extends ArchivesNotion implements Serializable {
	private String operatorname;

	private String dictItemName;

	public String getDictItemName() {
		return dictItemName;
	}

	public void setDictItemName(String dictItemName) {
		this.dictItemName = dictItemName;
	}

	public String getOperatorname() {
		return operatorname;
	}

	public void setOperatorname(String operatorname) {
		this.operatorname = operatorname;
	}

	public void init() {
		this.setId(null);
		this.setProcessInstanceId(0);
		this.setUserId("");
		this.setDictItemId("");
		this.setContent("");
		this.setLatestDate("");
		this.setOperatorname("");
		this.setDictItemName("");
	}

	public void reset() {
		init();
	}

	public ArchivesNotionData() {
		init();
	}

	public ArchivesNotionData(Long id, long processInstanceId, String userId,
			String dictItemId, String content, String latestDate,
			String operatorname, String dictItemName) {
		this.setId(id);
		this.setProcessInstanceId(processInstanceId);
		this.setUserId(StringUtil.trim(userId));
		this.setDictItemId(StringUtil.trim(dictItemId));
		this.setContent(StringUtil.trim(content));
		if (latestDate != null) {
			this.setLatestDate(StringUtil.trim(latestDate).substring(0, 10));
		} else {
			this.setLatestDate("");
		}
		this.setOperatorname(StringUtil.trim(operatorname));
		this.setDictItemName(StringUtil.trim(dictItemName));
	}

}
